package com.sxpi.zixun.service.coursecomment;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.zixun.bo.CourseCommentBo;
import com.sxpi.zixun.pojo.CourseComment;
import com.sxpi.zixun.service.BaseService;
import com.sxpi.zixun.vo.CourseCommentVo;

import java.util.List;

/**
 * @Author: 董伟豪
 * @Date: 2022/9/5 20:02
 */
public interface ICourseCommentService extends IService<CourseComment>, BaseService {

    /**
     * 查询课程评论列表信息
     * @return
     */
    List<CourseCommentBo> findCourseCommentList();

    /**
     * 查询课程评论列表信息并分页
     * @param coursecommentVo
     * @return
     */
    IPage<CourseCommentBo> findCourseCommentPage(CourseCommentVo coursecommentVo);

    /**
     * 根据课程评论id查询明细信息
     * @param id
     * @return
     */
    CourseCommentBo getCourseCommentById(Long id);

    /**
     * 保存和修改课程评论
     * @param coursecomment
     * @return
     */
    CourseCommentBo saveUpdateCourseComment(CourseComment coursecomment);

    /**
     * 根据课程评论id删除课程评论
     * @param id
     * @return
     */
    int deleteCourseCommentById(Long id);

    /**
     * 根据课程评论ids批量删除课程评论
     * @param batchIds
     * @return
     */
    boolean delBatchCourseComment(String batchIds);
}
